import {
  Controller,
  Get,
  Post,
  Body,
  Query,
  Header,
  UseGuards,
  Request,
} from '@nestjs/common';
import { AreaService } from './area.service';
import { AuthGuard } from '@nestjs/passport';

// @UseGuards(AuthGuard('jwt'))
@Controller('area')
export class AreaController {
  constructor(private readonly areaService: AreaService) {}
  
  @Get('/getAreaList')
  async getAreaList(@Query() param) {
    return await this.areaService.getAreaList(param);
  }
  @Get('/getAreaTree')
  async getAreaTree(@Query() param) {
    return await this.areaService.getAreaTree(param);
  }
}
